package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.ShouquanBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.CONN_TEAM)
public class ConnTamList extends BaseAsyPost<ShouquanBean> {

    public String member_id, role_id, page;


    public ConnTamList(String member_id, String role_id, String page, AsyCallBack<ShouquanBean> asyCallBack) {
        super(asyCallBack);
        this.member_id = member_id;
        this.role_id = role_id;
        this.page = page;
    }

    @Override
    protected ShouquanBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");
       /* TOAST = object.optString("message");

        Gson gson = new Gson();

        CommenBean loginBean = new CommenBean();

        loginBean = gson.fromJson(object.toString(), CommenBean.class);*/
        Gson gson = new Gson();

        ShouquanBean loginBean = new ShouquanBean();

        loginBean = gson.fromJson(object.toString(), ShouquanBean.class);

        return loginBean;


    }
}



